<?php

namespace SinoPHP\BbdBoss\Api;

use SinoPHP\BbdBoss\Library\BasicInformation;

/**
 * IP变更
 *
 * Todo: 本接口尚未实现业务, 暂仅作为对外调试连通性
 *
 * Params:
 *      data:id         (integer)      IP对应ID
 *      data:oldIp      (string)       原IP
 *      data:newIp      (string)       新IP
 */
class HostnameChangedNotify extends ApiAbstract {

    public function v_1_0_0() {
        $this->checkToken(); // 校验TOKEN
        //同步ip列表,物理节点,设备信息
        ignore_user_abort(true);
        set_time_limit(120);
        $basic = new BasicInformation();
        $basic->getIPList();
        $basic->getNodeList();
        $basic->getDeviceList();

        $this->success();
    }

}
